package com.keya.device;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 网关属性
 *
 * @author hexiaofei
 * @date 2023/03/21
 */
@Data
@Component
@ConfigurationProperties("gateway")
public class GatewayProperties {

    private String storage;

    private String serverAddr = "127.0.0.1";

    private Integer serverPort = Integer.valueOf("32345");

    private String listenAddr = "0.0.0.0";

    private Integer listenPort = Integer.valueOf("32345");

    private String name;

    private String aetitle;

    /**
     * 清理数据时间。默认30天
     */
    private Integer clearData = 30;

    private Integer timeOut = 60 * 1000;

    private boolean pullFilterByStudyDate = true;
}
